<?php
/**
* chats 用户主程序
* 
* 无简介
* @author xzqiapchu(www.xzzhangqiaochu.top)
* @version v1.0.0.200217_beta
*/
error_reporting(E_ALL);
define('IN_SYS', true);
date_default_timezone_set('Asia/Shanghai');
header('content-type:text/html;charset=utf-8');

require_once './inc/session.inc.php';
require_once './inc/login.inc.php';

Session::start();

if (empty($_COOKIE['CHATS_SESSION'])) {
    readfile('./static/html/login.html');
    exit(0);
}

if (Login::isLogin())
    readfile('./static/html/home.html');
else
    readfile('./static/html/login.html');
